package com.zhss.demo.register.server;

import java.util.LinkedList;

/**
 * 增量注册表
 *
 * @author: gubatian
 * @create: 2021-09-23 17:05
 */
public class DeltaRegistry {
    /**
     * 最近变更的服务实例队列
     */
    private LinkedList<ServiceRegistry.RecentlyChangedServiceInstance> recentlyChangedQueue;
    /**
     * 注册表内服务实例总数
     */
    private Long serviceInstanceTotalCount;

    public DeltaRegistry(LinkedList<ServiceRegistry.RecentlyChangedServiceInstance> recentlyChangedQueue, Long serviceInstanceTotalCount) {
        this.recentlyChangedQueue = recentlyChangedQueue;
        this.serviceInstanceTotalCount = serviceInstanceTotalCount;
    }

    public LinkedList<ServiceRegistry.RecentlyChangedServiceInstance> getRecentlyChangedQueue() {
        return recentlyChangedQueue;
    }

    public void setRecentlyChangedQueue(LinkedList<ServiceRegistry.RecentlyChangedServiceInstance> recentlyChangedQueue) {
        this.recentlyChangedQueue = recentlyChangedQueue;
    }

    public Long getServiceInstanceTotalCount() {
        return serviceInstanceTotalCount;
    }

    public void setServiceInstanceTotalCount(Long serviceInstanceTotalCount) {
        this.serviceInstanceTotalCount = serviceInstanceTotalCount;
    }
}
